#include "GameObject.h"
std::vector<jfw::GameObject*> jfw::GameObject::GameObjectList;

jfw::GameObject::GameObject()
{
    jfw::GameObject::GameObjectList.push_back(this);
}

jfw::GameObject::~GameObject()
{
    GameObjectList.clear();
}

void jfw::GameObject::SetSprite(std::string m_strFilename)
{
    //this->Sprite.SetImage();
}

void jfw::GameObject::Update(float m_fTime)
{
}

void jfw::GameObject::UpdateAll(float m_fTime)
{
    for(unsigned int i=0;GameObjectList.size()>i; ++i)
    {
        GameObjectList[i]->Update(m_fTime);
    }
}
